package com.qixin.web.controller.TencentMap;


import com.qixin.api.service.ComCarService;
import com.qixin.web.bean.WeCharging;
import com.qixin.web.service.WeChargingService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * <p>
 * 充电站信息 前端控制器
 * </p>
 *
 * @author 闫亚茹
 * @since 2018-10-02
 */
@Controller
@RequestMapping("/weCharging")
public class WeChargingController {
	@Autowired
    WeChargingService weChargingService;

	private Logger logger = LoggerFactory.getLogger(WeChargingController.class);

	@ResponseBody
	@RequestMapping("/addWeCharging")
	public String addWeCharging (WeCharging weCharging){
	    if(weChargingService.insert(weCharging)){
	        logger.info("{addWeCharging|保存成功}");
	        return  "保存成功";
        }else
            logger.info("{addWeCharging|保存失败}");
	    return "保存失败";
    }

}
